home *** CD-ROM | disk | FTP | other *** search
/ MacGames Sampler / PHT MacGames Bundle.iso / MacSource Folder / Samples from the CD / Editors / emacs / Emacs-1.14b1-sources / sources / mac-emacs-src / s-mac.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-05-14  |  4.0 KB  |  138 lines  |  [TEXT/EMAC]

  1. /*
  2.  * s-mac.h
  3.  *
  4.  * Copyright (C) 1993, 1994 Marc Parmet.
  5.  * This file is part of the Macintosh port of GNU Emacs.
  6.  *
  7.  * GNU Emacs is distributed in the hope that it will be useful,
  8.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  10.  * GNU General Public License for more details.
  11.  */
  12.  
  13. /*
  14.  *    Define symbols to identify the version of Unix this is.
  15.  *    Define all the symbols that apply correctly.
  16.  */
  17.  
  18. /* #define UNIPLUS */
  19. /* #define USG5 */
  20. /* #define USG */
  21. /* #define HPUX */
  22. /* #define UMAX */
  23. /* #define BSD4_1 */
  24. /* #define BSD4_2 */
  25. /* #define BSD4_3 */
  26. /* #define BSD */
  27. /* #define VMS */
  28.  
  29. /* SYSTEM_TYPE should indicate the kind of system you are using.
  30.  It sets the Lisp variable system-type.  */
  31.  
  32. #define SYSTEM_TYPE "Apple-Macintosh"
  33.  
  34. /* NOMULTIPLEJOBS should be defined if your system's shell
  35.  does not have "job control" (the ability to stop a program,
  36.  run some other program, then continue the first one).  */
  37.  
  38. #define NOMULTIPLEJOBS
  39.  
  40. /* Emacs can read input using SIGIO and buffering characters itself,
  41.    or using CBREAK mode and making C-g cause SIGINT.
  42.    The choice is controlled by the variable interrupt_input.
  43.    Define INTERRUPT_INPUT to make interrupt_input = 1 the default (use SIGIO)
  44.  
  45.    SIGIO can be used only on systems that implement it (4.2 and 4.3).
  46.    CBREAK mode has two disadvatages
  47.      1) At least in 4.2, it is impossible to handle the Meta key properly.
  48.         I hear that in system V this problem does not exist.
  49.      2) Control-G causes output to be discarded.
  50.         I do not know whether this can be fixed in system V.
  51.  
  52.    Another method of doing input is planned but not implemented.
  53.    It would have Emacs fork off a separate process
  54.    to read the input and send it to the true Emacs process
  55.    through a pipe.
  56. */
  57.  
  58. /* #define INTERRUPT_INPUT */
  59.  
  60. /* Letter to use in finding device name of first pty,
  61.   if system supports pty's.  'a' means it is /dev/ptya0  */
  62.  
  63. /* #define FIRST_PTY_LETTER 'a' */
  64.  
  65. /*
  66.  *    Define HAVE_TIMEVAL if the system supports the BSD style clock values.
  67.  *    Look in <sys/time.h> for a timeval structure.
  68.  */
  69.  
  70. /* #define HAVE_TIMEVAL */
  71.  
  72. /*
  73.  *    Define HAVE_SELECT if the system supports the `select' system call.
  74.  */
  75.  
  76. /* #define HAVE_SELECT */
  77.  
  78. /*
  79.  *    Define HAVE_PTYS if the system supports pty devices.
  80.  */
  81.  
  82. /* #define HAVE_PTYS */
  83.  
  84. /*
  85.  *    Define NONSYSTEM_DIR_LIBRARY to make Emacs emulate
  86.  *      The 4.2 opendir, etc., library functions.
  87.  */
  88.  
  89. /* #define NONSYSTEM_DIR_LIBRARY */
  90.  
  91. /* Define this symbol if your system has the functions bcopy, etc. */
  92.  
  93. /* #define BSTRING */
  94.  
  95. /* subprocesses should be defined if you want to
  96.    have code for asynchronous subprocesses
  97.    (as used in M-x compile and M-x shell).
  98.    This is generally OS dependent, and not supported
  99.    under most USG systems. */
  100.  
  101. #define subprocesses
  102.  
  103. /* If your system uses COFF (Common Object File Format) then define the
  104.    preprocessor symbol "COFF". */
  105.  
  106. /* #define COFF */
  107.  
  108. /* define MAIL_USE_FLOCK if the mailer uses flock
  109.    to interlock access to /usr/spool/mail/$USER.
  110.    The alternative is that a lock file named
  111.    /usr/spool/mail/$USER.lock.  */
  112.  
  113. /* #define MAIL_USE_FLOCK */
  114.  
  115. /* Define CLASH_DETECTION if you want lock files to be written
  116.    so that Emacs can tell instantly when you try to modify
  117.    a file that someone else has modified in his Emacs.  */
  118.  
  119. /* #define CLASH_DETECTION */
  120.  
  121. /* Here, on a separate page, add any special hacks needed
  122.    to make Emacs work on this system.  For example,
  123.    you might define certain system call names that don't
  124.    exist on your system, or that do different things on
  125.    your system and must be used only through an encapsulation
  126.    (Which you should place, by convention, in sysdep.c).  */
  127.  
  128. /* Some compilers tend to put everything declared static
  129.    into the initialized data area, which becomes pure after dumping Emacs.
  130.    On these systems, you must #define static as nothing to foil this.
  131.    Note that emacs carefully avoids static vars inside functions.  */
  132.  
  133. /* #define static */
  134.  
  135. #define    PENDING_OUTPUT_COUNT(FILE) 0
  136. #define _setjmp    setjmp
  137. #define _longjmp longjmp
  138.